<?php
//ini_set('error_reporting','');
session_start();
include("sysConnect.php");

/********************/
if ( empty($paramsArr['print']) )
{	
	$template->set_filenames(array(
		'header' => 'header.tpl',
	));

	$template->assign_vars(array(
		'_METATAG' => '<META HTTP-EQUIV="imagetoolbar" CONTENT="no">',
		'_JSSCRIPT' => '
			<script language="javascript" src="jscripts/main.js"></script>
			<script language="javascript" src="jscripts/codethatcalendarstd.js"></script>
			<script language="javascript" src="jscripts/scroller_ex.js"></script>
			<script language="javascript">
				var c1 = new CodeThatCalendar(caldef1);
			</script>
		',

		'T_SITENAME' => $info['sitename'],
		'T_CHARSET' => $info['charset'],
		'T_STYLE_PATH' => $info['style_path'],
		'T_IMAGE_PATH' => $info['template_image_path']
	));
	
	/* main menu */
	$template->assign_vars(array(
		'_MMENU'	=> '
		<img src="' . $info['template_path'] . 'images/bmmenu.gif" border="0" align="absmiddle">&nbsp;<a href="index.php" style="padding-right: 15px">' . $lang['l_pc_homepage'] . '</a>
		<img src="' . $info['template_path'] . 'images/bmmenu.gif" border="0" align="absmiddle">&nbsp;<a href="modules.php?p=' . setURLParams('act=dyn&mod=PCTroubleshooting&f=guest_post_question') . '" style="padding-right: 15px">' . $lang['l_pc_sendquestion'] . '</a>
		<img src="' . $info['template_path'] . 'images/bmmenu.gif" border="0" align="absmiddle">&nbsp;<a href="#" style="padding-right: 15px">' . $lang['l_pc_contact'] . '</a>
		'
	));
		
	$template->pparse('header');	
	
	include('left.php');
}
else
{
	/* in */
	$template->set_filenames(array(
		'header' => 'header_print.tpl'
	));
	
	$template->assign_vars(array(
		'_METATAG' => '<META HTTP-EQUIV="imagetoolbar" CONTENT="no">',
		'T_SITENAME' => $info['sitename'],
		'T_CHARSET' => $info['charset'],
		'T_STYLE_PATH' => $info['style_path'],
		'T_IMAGE_PATH' => $info['template_image_path'],
	));
	
	$template->pparse('header');	
	
}
?>